package com.hue.gulimail.gulimailcoupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hue.common.utils.PageUtils;
import com.hue.gulimail.gulimailcoupon.entity.SeckillSessionEntity;

import java.util.List;
import java.util.Map;

/**
 * 秒杀活动场次
 *
 * @author yaofengqiao
 * @email 451737523@qq.com
 * @date 2021-08-12 17:05:02
 */
public interface SeckillSessionService extends IService<SeckillSessionEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取最近3天的秒杀活动
     *
     * @return
     */
    List<SeckillSessionEntity> getSeckill3Days();

    /**
     * 将活动设置为已发布状态
     * @param ids
     */
    void setSessionPublish(List<Long> ids);
}

